.gridjs-footer button,
.gridjs-head button {
  background-color: transparent;
  background-image: none;
  border: none;
  cursor: pointer;
  margin: 0;
  outline: none;
  padding: 0;
}

.gridjs-temp {
  position: relative;
}

.gridjs-head {
  margin-bottom: 5px;
  padding: 5px 1px;
  width: 100%;
}

.gridjs-head:after {
  clear: both;
  content: "";
  display: block;
}

.gridjs-head:empty {
  border: none;
  padding: 0;
}

.gridjs-container {
  color: var(--bs-body-color);
  display: inline-block;
  overflow: hidden;
  padding: 2px;
  position: relative;
  z-index: 0;
}

.gridjs-footer {
  background-color: var(--bs-tertiary-bg);
  border-bottom-width: 1px;
  border-color: var(--bs-secondary);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--bs-secondary);
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.26);
  display: block;
  padding: 12px 24px;
  position: relative;
  width: 100%;
  z-index: 5;
}

.gridjs-footer:empty {
  border: none;
  padding: 0;
}

input.gridjs-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-secondary-bg);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  padding: 10px 13px;
}

input.gridjs-input:focus {
  border-color: var(--bs-primary-rgb);
  box-shadow: 0 0 0 3px rgba(149, 189, 243, 0.5);
}

.gridjs-pagination {
  color: var(--bs-tertiary);
}

.gridjs-pagination:after {
  clear: both;
  content: "";
  display: block;
}

.gridjs-pagination .gridjs-summary {
  float: left;
  margin-top: 5px;
}

.gridjs-pagination .gridjs-pages {
  float: right;
}

.gridjs-pagination .gridjs-pages button {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-secondary-bg);
  border-right: none;
  outline: none;
  padding: 5px 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.gridjs-pagination .gridjs-pages button:focus {
  border-right: 1px solid var(--bs-secondary-bg);
  box-shadow: 0 0 0 2px rgba(149, 189, 243, 0.5);
  margin-right: -1px;
  position: relative;
}

.gridjs-pagination .gridjs-pages button:hover {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-tertiary-bg);
  outline: none;
}

.gridjs-pagination .gridjs-pages button:disabled,
.gridjs-pagination .gridjs-pages button:hover:disabled,
.gridjs-pagination .gridjs-pages button[disabled] {
  background-color: var(--bs-body-bg);
  color: var(--bs-secondary-rgb);
  cursor: default;
}

.gridjs-pagination .gridjs-pages button.gridjs-spread {
  background-color: var(--bs-body-bg);
  box-shadow: none;
  cursor: default;
}

.gridjs-pagination .gridjs-pages button.gridjs-currentPage {
  background-color: var(--bs-secondary-bg);
  font-weight: 700;
}

.gridjs-pagination .gridjs-pages button:last-child {
  border-bottom-right-radius: 6px;
  border-right: 1px solid var(--bs-secondary-bg);
  border-top-right-radius: 6px;
}

.gridjs-pagination .gridjs-pages button:first-child {
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
}

.gridjs-pagination .gridjs-pages button:last-child:focus {
  margin-right: 0;
}

button.gridjs-sort {
  background-color: transparent;
  background-position-x: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  cursor: pointer;
  float: right;
  height: 24px;
  margin: 0;
  outline: none;
  padding: 0;
  width: 13px;
}

button.gridjs-sort-neutral {
  background-image: url("");
  background-position-y: center;
  opacity: 0.3;
}

button.gridjs-sort-asc {
  background-image: url("");
  background-position-y: 35%;
  background-size: 10px;
}

button.gridjs-sort-desc {
  background-image: url("");
  background-position-y: 65%;
  background-size: 10px;
}

button.gridjs-sort:focus {
  outline: none;
}

table.gridjs-table {
  border-collapse: collapse;
  display: table;
  margin: 0;
  max-width: 100%;
  overflow: auto;
  padding: 0;
  table-layout: fixed;
  text-align: left;
  width: 100%;
}

.gridjs-tbody,
td.gridjs-td {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-tertiary);
}

td.gridjs-td {
  border: 1px solid var(--bs-secondary);
  box-sizing: content-box;
  padding: 12px 24px;
}

td.gridjs-td:first-child {
  border-left: none;
}

td.gridjs-td:last-child {
  border-right: none;
}

td.gridjs-message {
  text-align: center;
}

th.gridjs-th {
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-secondary);
  border-top: none;
  box-sizing: border-box;
  color: var(--bs-tertiary);
  outline: none;
  padding: 14px 24px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}

th.gridjs-th .gridjs-th-content {
  float: left;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

th.gridjs-th-sort {
  cursor: pointer;
}

th.gridjs-th-sort .gridjs-th-content {
  width: calc(100% - 15px);
}

th.gridjs-th-sort:focus,
th.gridjs-th-sort:hover {
  background-color: #e5e7eb;
}

th.gridjs-th-fixed {
  box-shadow: 0 1px 0 0 #e5e7eb;
  position: sticky;
}

@supports (-moz-appearance: none) {
  th.gridjs-th-fixed {
    box-shadow: 0 0 0 1px #e5e7eb;
  }
}

th.gridjs-th:first-child {
  border-left: none;
}

th.gridjs-th:last-child {
  border-right: none;
}

.gridjs-tr {
  border: none;
}

.gridjs-tr-selected td {
  background-color: var(--bs-secondary-bg);
}

.gridjs-tr:last-child td {
  border-bottom: 0;
}

.gridjs *,
.gridjs :after,
.gridjs :before {
  box-sizing: border-box;
}

.gridjs-wrapper {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-color: #e5e7eb;
  border-radius: 8px 8px 0 0;
  border-top-width: 1px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.26);
  display: block;
  overflow: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.gridjs-wrapper:nth-last-of-type(2) {
  border-bottom-width: 1px;
  border-radius: 8px;
}

.gridjs-search {
  float: left;
}

.gridjs-search-input {
  width: 250px;
}

.gridjs-loading-bar {
  background-color: var(--bs-secondary-bg);
  opacity: 0.5;
  z-index: 10;
}

.gridjs-loading-bar,
.gridjs-loading-bar:after {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gridjs-loading-bar:after {
  animation: shimmer 2s infinite;
  background-image: linear-gradient(
    90deg,
    hsla(0, 0%, 80%, 0),
    hsla(0, 0%, 80%, 0.2) 20%,
    hsla(0, 0%, 80%, 0.5) 60%,
    hsla(0, 0%, 80%, 0)
  );
  content: "";
  transform: translateX(-100%);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.gridjs-td .gridjs-checkbox {
  cursor: pointer;
  display: block;
  margin: auto;
}

.gridjs-resizable {
  bottom: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
}

.gridjs-resizable:hover {
  background-color: #9bc2f7;
  cursor: ew-resize;
}
